@echo off

"C:\Program Files\TortoiseSVN\bin\SubWCRev.exe" %1 %1_common\AssemblyCommonInfo.cs %2Properties\AssemblyCommonInfo_1.cs -f > nul
"C:\Program Files\TortoiseSVN\bin\SubWCRev.exe" %2 %1_common\SourceCheck.cs %2Properties\AssemblyCommonInfo_2.cs -f > nul

if not exist %2Properties\AssemblyCommonInfo.cs goto overwrite

copy /y %2Properties\AssemblyCommonInfo_1.cs+%2Properties\AssemblyCommonInfo_2.cs %2Properties\AssemblyCommonInfo_new.cs > nul

fc %2Properties\AssemblyCommonInfo_new.cs %2Properties\AssemblyCommonInfo.cs > nul
if not errorlevel==1 goto eof
copy /y %2Properties\AssemblyCommonInfo_new.cs %2Properties\AssemblyCommonInfo.cs > nul
goto eof

:overwrite
copy /y %2Properties\AssemblyCommonInfo_1.cs+%2Properties\AssemblyCommonInfo_2.cs %2Properties\AssemblyCommonInfo.cs > nul

:eof
del /q %2Properties\AssemblyCommonInfo_*.cs

